package com.laf.manage.domain.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotNull;

@Data
@ApiModel("收藏dto")
public class StoreDTO {

    @ApiModelProperty("收藏内容id")
    @NotNull(message = "收藏内容id不能为空")
    private Long contentId;

    @ApiModelProperty("收藏内容类型 1 动态  2 失物")
    @NotNull(message = "收藏内容类型不能为空")
    @Range(min =  1 , max = 2 , message = "收藏内容类型错误")
    private Integer  contentType;

}
